.class Lcom/baidu/mobads/utils/u;
.super Lcom/baidu/mobads/openad/e/e$b;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/baidu/mobads/openad/e/e$b<",
        "Ljava/lang/String;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Landroid/content/Context;

.field final synthetic b:Lcom/baidu/mobads/utils/t;


# direct methods
.method constructor <init>(Lcom/baidu/mobads/utils/t;Landroid/content/Context;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/baidu/mobads/utils/u;->b:Lcom/baidu/mobads/utils/t;

    iput-object p2, p0, Lcom/baidu/mobads/utils/u;->a:Landroid/content/Context;

    invoke-direct {p0}, Lcom/baidu/mobads/openad/e/e$b;-><init>()V

    return-void
.end method


# virtual methods
.method public synthetic a()Ljava/lang/Object;
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/baidu/mobads/utils/u;->b()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public bridge synthetic a(Ljava/lang/Object;)V
    .locals 0

    .line 2
    check-cast p1, Ljava/lang/String;

    invoke-virtual {p0, p1}, Lcom/baidu/mobads/utils/u;->a(Ljava/lang/String;)V

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 0

    return-void
.end method

.method public b()Ljava/lang/String;
    .locals 7

    const-string v0, ""

    .line 1
    :try_start_0
    iget-object v1, p0, Lcom/baidu/mobads/utils/u;->b:Lcom/baidu/mobads/utils/t;

    const-string v2, "1"

    invoke-static {v1, v2}, Lcom/baidu/mobads/utils/t;->a(Lcom/baidu/mobads/utils/t;Ljava/lang/String;)Ljava/lang/String;

    .line 2
    iget-object v1, p0, Lcom/baidu/mobads/utils/u;->a:Landroid/content/Context;

    .line 3
    invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    const-string v2, "bd_setting_i"

    .line 4
    invoke-static {v1, v2}, Landroid/provider/Settings$System;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 5
    iget-object v2, p0, Lcom/baidu/mobads/utils/u;->b:Lcom/baidu/mobads/utils/t;

    invoke-static {v2, v1}, Lcom/baidu/mobads/utils/t;->b(Lcom/baidu/mobads/utils/t;Ljava/lang/String;)Z

    move-result v2
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    const-string v3, "2"

    if-eqz v2, :cond_0

    .line 6
    :try_start_1
    iget-object v1, p0, Lcom/baidu/mobads/utils/u;->b:Lcom/baidu/mobads/utils/t;

    invoke-static {v1, v3}, Lcom/baidu/mobads/utils/t;->a(Lcom/baidu/mobads/utils/t;Ljava/lang/String;)Ljava/lang/String;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    move-object v1, v0

    .line 7
    :cond_0
    :try_start_2
    iget-object v2, p0, Lcom/baidu/mobads/utils/u;->a:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v2

    .line 8
    iget-object v4, p0, Lcom/baidu/mobads/utils/u;->a:Landroid/content/Context;

    invoke-virtual {v4}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v4

    const/16 v5, 0x1000

    invoke-virtual {v2, v4, v5}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v2

    .line 9
    iget-object v2, v2, Landroid/content/pm/PackageInfo;->requestedPermissions:[Ljava/lang/String;

    const/4 v4, 0x0

    .line 10
    :goto_0
    array-length v5, v2

    if-ge v4, v5, :cond_2

    .line 11
    aget-object v5, v2, v4

    const-string v6, "android.permission.READ_PHONE_STATE"

    invoke-virtual {v5, v6}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 12
    iget-object v2, p0, Lcom/baidu/mobads/utils/u;->b:Lcom/baidu/mobads/utils/t;

    invoke-static {v2, v3}, Lcom/baidu/mobads/utils/t;->c(Lcom/baidu/mobads/utils/t;Ljava/lang/String;)Ljava/lang/String;

    goto :goto_1

    .line 13
    :cond_1
    iget-object v5, p0, Lcom/baidu/mobads/utils/u;->b:Lcom/baidu/mobads/utils/t;

    const-string v6, "0"

    invoke-static {v5, v6}, Lcom/baidu/mobads/utils/t;->c(Lcom/baidu/mobads/utils/t;Ljava/lang/String;)Ljava/lang/String;
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    .line 14
    :catchall_0
    :cond_2
    :goto_1
    :try_start_3
    invoke-static {v1}, Lcom/baidu/mobads/utils/t;->a(Ljava/lang/String;)Ljava/lang/String;
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    goto :goto_2

    .line 15
    :catchall_1
    invoke-static {v0}, Lcom/baidu/mobads/utils/t;->a(Ljava/lang/String;)Ljava/lang/String;

    .line 16
    :goto_2
    invoke-static {}, Lcom/baidu/mobads/utils/t;->b()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
